<html>
<head>
<link href="{$siteinfo.tempdir}images/index.css" rel="stylesheet"
	type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="inc/js/jquery.js" type="text/javascript"></script>
<script src="inc/js/jquery-chekform.js"
	type="text/javascript"></script>
<script src="inc/js/jquery-kwor.js"
	type="text/javascript"></script>

<!---->
<script language="javascript">
$(function(){
//默认上级分类的处理
$("#fm_upid").inductance('0',$("#slink"),'neq');
//选择后的处理
$("#fm_upid").change(function(){
	$("#fm_upid").inductance('0',$("#slink"),'neq');
})
	
//提交验证部分
var chkval=new Array();
chkval[0]={"name":$("#fm_name"),"where":$("#errmsg"),"value":"<div class='errbox'><span class='nwring'></span><span>菜单名称不能为空！</span></div>","type":"chkblank"};
chkval[1]={"name":$("#fm_ordid"),"where":$("#errmsg"),"value":"<div class='errbox'><span class='nwring'></span><span>排序必须为正整数或0！</span></div>","type":"num"};
chkval[2]={"name":$("#fm_link"),"where":$("#errmsg"),"value":"<div class='errbox'><span class='nwring'></span><span>非顶级菜单连接不能为空！</span></div>","type":"chkblank"};

$("#sub").chkform(chkval);


})
</script>
</head>
<body>
<form name="form1" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="100%" class="list black" colspan="2">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="86%" align="center" class="black">信息设置</td>
				<td width="14%"><a href="javascript:history.go(-1)"><img
					src="{$siteinfo.tempdir}images/list_add3.gif" width="84"
					height="26"
					onMouseOver="this.src='{$siteinfo.tempdir}images/list_add4.gif'"
					onMouseOut="this.src='{$siteinfo.tempdir}images/list_add3.gif'"
					border="0" /></a></td>
			</tr>
		</table>
		</td>
	</tr>

	<tr>
		<td class="list-add1 pl8" colspan="2" style="display: none"
			id="errmsg"></td>
	</tr>

	<tr>
		<td height="40" align="right" class="list-add1">名称：</td>
		<td class="list-add1 pl8"><input name="fm_name" type="text"
			size="30" value="{$menuinfo.name}" id="fm_name" /></td>
	</tr>

	<tr>
		<td height="40" align="right" class="list-add1">排序：</td>
		<td class="list-add1 pl8"><!--{if $smarty.get.action eq 'edit'}-->
		<input name="fm_ordid" type="text" size="6" id="fm_ordid"
			value="{$menuinfo.ordid}" /> <!--{else}--> <input name="fm_ordid"
			type="text" size="6" id="fm_ordid" value="0" /> <!--{/if}--></td>
	</tr>

	<tr>
		<td height="40" align="right" class="list-add1">上级菜单：</td>
		<td class="list-add1 pl8"><!--{if $smarty.get.action eq 'edit'}-->
		{html_select options=$topmenu selected=$menuinfo.upid name='fm_upid' id='fm_upid'} <!--{else}--> {html_select options=$topmenu selected='0' name='fm_upid' id='fm_upid'} <!--{/if}--></td>
	</tr>

	<tr id="slink">
		<td height="40" align="right" class="list-add1">链接：</td>
		<td class="list-add1 pl8"><input name="fm_link" type="text" size="50" id="fm_link" value="{if $menuinfo.link }{$menuinfo.link}{else}#{/if}" />

		</td>
	</tr>



	<tr>
		<td height="40" align="right" class="list-add1">用户组：</td>
		<td class="list-add1 pl8"><!--{if $smarty.get.action eq 'edit'}-->
		{html_select options=$admintype selected=$menuinfo.ower name='fm_ower' id='fm_ower'} <!--{else}--> {html_select options=$admintype selected='all' name='fm_ower' id='fm_ower'} <!--{/if}-->
	</tr>






	<tr>
		<td align="center" class="list-add1" colspan="2" style="padding: 20px">

		<input type="submit" value="提&nbsp;&nbsp;交&nbsp;&nbsp;信&nbsp;&nbsp;息" name="sub" id="sub"> <!--{if $smarty.get.action eq 'edit'}-->
		<input type="hidden" name="action" value="update" /> <input
			type="hidden" name="setadminid" value="{$smarty.get.setadminid}" />
		<!--{else if $smarty.get.action eq 'add'}--> <input type="hidden"
			name="action" value="insert" /> <!--{/if}--></td>
	</tr>
</table>
</form>

<table width="102%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>

</body>
</html>
